package hotgammon.view.helper;

import hotgammon.domain.*;
import hotgammon.view.helper.*;
import hotgammon.view.tools.*;
import hotgammon.view.*;

import minidraw.framework.*;

public class GameStateChange {
    
    public GameStateChange(HotgammonFactory factory) {
        BackgammonUserInterface ui =
                new HotgammonUserInterfaceTester(
                "Gruppe 7", factory);
        DrawingEditor editor = ui.getEditor();
        
        editor.open();
        
        editor.setTool( new GameStateTool(ui) );
        
        ui.getGame().newGame();
    }
    
}
